<?
$navsel['hotel'] = '';
$navsel['appartment'] = '';
$navsel['excursions'] = '';
$navsel['rentacar'] = '';
$navsel['transfers'] = '';

$method = $this->router->fetch_method();

if (isset($_GET['acc_type']))
switch ($_GET['acc_type']) {
case 'appartment':
$navsel['appartment'] = 'active';
break;
case 'hotel':
$navsel['hotel'] = 'active';
break;
}
?>

<!-- header -->
<header class="<?= $method === 'index' ? 'homepageHeader' : '' ?>"> 

    <!-- header top content -->
    <div class="headerTopContent clearfix">
        <ul class="topMenu" style="display: block">
            <li><a>Home</a></li>
            <li><span>|</span></li>
            <li><a><?= lang('top.about'); ?></a></li>
            <li><span>|</span></li>
            <li><a><?= lang('top.servcie'); ?></a></li>
            <li><span>|</span></li>
            <li><a><?= lang('menu.contactus'); ?></a></li>
        </ul>
        <div class="topLinks"> <a><?= lang('menu.sitemap'); ?></a> <span>|</span>
            <div class="chooseLanguage">

                <? $l = $this->lang->mci_current(); $s = 'selected';  ?> 

                <select id="lang_select" class="dropdownized">
                    <option value="<?= base_url(lchange('en')) . $template_lang ?>" <?if($l==='en') echo $s;?>>English</option>
                    <option value="<?= base_url(lchange('me')) . $template_lang ?>" <?if($l==='me') echo $s;?>>Crnogorski</option>
                    <option value="<?= base_url(lchange('ru')) . $template_lang ?>" <?if($l==='ru') echo $s;?>>Rусский</option>
                    <option value="<?= base_url(lchange('de')) . $template_lang ?>" <?if($l==='de') echo $s;?>>Deutsch</option>
                </select>
            </div>
        </div>
    </div>
    <!-- /header top content --> 

    <!-- header logo -->
    <div class="logo"> 
        <a href="<?= lang_url() ?>">
            <img src="<?= base_url() ?>assets/img/<?= $method === 'index' ? 'homepageLogo' : 'logo' ?>.png" alt="logo" />
        </a> 
    </div>
    <!-- /header logo --> 

    <!-- header main navigation -->
    <div class="mainNavigation">
        <nav>

            <ul class="mainMenu">
                <li><a class="<?= $navsel['hotel'] ?>" href="<?= lang_url('search') ?>?acc_type=hotel&preview=1<?= lcu() ?>"><?= lang('nav.hotels'); ?></a></li>
                <li><span>&nbsp;</span></li>
                <li><a class="<?= $navsel['appartment'] ?>" href="<?= lang_url('search') ?>?acc_type=appartment&preview=1<?= lcu() ?>"><?= lang('nav.private'); ?></a></li>
                <li><span>&nbsp;</span></li>
                <li><a><?= lang('nav.excursions'); ?></a></li>
                <li><span>&nbsp;</span></li>
                <li><a><?= lang('nav.rentacar'); ?></a></li>
                <li><span>&nbsp;</span></li>
                <li><a><?= lang('nav.transfers'); ?></a></li>
                <li><span>&nbsp;</span></li>
            </ul>
        </nav>
        <ul class="secondaryMenu" style="display: none">
            <li><a>About Montenegro</a></li>
            <li><span>|</span></li>
            <li><a>Gastronomy</a></li>
            <li><span>|</span></li>
            <li><a>Things To Do</a></li>
            <li><span>|</span></li>
            <li><a>Art &amp; Culture</a></li>
        </ul>
    </div>
    <!-- /header main navigation --> 

</header>
<!-- /header --> 